<?php

/**
 * 错误码
 */
class ErrorCode {

    static public $SUCCESS = [0, 'Success'];
    static public $ERR_PARAMS_ERROR = [402, '参数错误'];
    static public $ERR_ACCESS_DENIED = [403, 'AccessDenied'];
    static public $ERR_SYSTEM_FAILED = [500, '系统错误'];
    static public $ERR_TOKEN_ILLEGAL = [501, 'Accesstoken非法'];
    static public $ERR_APPSECRT_ILLEGAL = [502, 'AppSecert非法'];
    static public $ERR_SMSERROR_PARAM = [503, '验证码发送失败，参数有误'];
    static public $ERR_SMSERROR_FAILED = [504, '验证码发送失败，接口异常'];
    static public $ERR_USERMODIFY_FAILED = [505, '修改用户信息失败，参数错误'];
    static public $ERR_USERVALIDATE_FAILED = [506, '用户鉴权失败，用户名不存在或者密码错误'];
    static public $ERR_USERHEAD_UPLOADFAILED = [507, '用户头像上传失败，目录不可写'];
    static public $ERR_USER_DOESNOTEXT = [508, '用户不存在'];
    static public $ERR_USER_PHONEEXT = [509, '注册失败，电话号码已存在'];
    static public $ERR_ADDRESS_DOESNOTEXT = [510, '操作失败，收货地址不存在'];
    static public $ERR_LIKE_EXT = [511, '添加收藏失败，收藏商品已存在'];
    static public $ERR_LIKE_NOTEXT = [512, '删除收藏失败，收藏信息不存在'];
    static public $ERR_PRODUCT_NOTEXT = [513, '获取商品信息失败，商品不存在'];
    static public $ERR_ORDER_NOTEXT = [514, '订单不存在'];
    static public $ERR_ORDER_CREDITNOTENG = [515, '订单创建失败，积分不足'];
    static public $ERR_PRODUCT_NOTEXT_COMM = [516, '获取商品评价失败，商品不存在'];
    static public $ERR_ORDER_CREDIT_AVA = [517, '获取订单可用积分失败，用户不存在'];
    static public $ERR_ORDER_DELETE_FAILED = [518, '删除订单失败，订单不可删除'];
    static public $ERR_ORDER_USER_NOTEXT = [519, '订单创建失败，用户不存在'];
    static public $ERR_ADDRESS_NAME = [520, '收货地址保存失败，请填写正确的姓名'];
    static public $ERR_ADDRESS_PROVINCE = [521, '收货地址保存失败，请选择省份'];
    static public $ERR_ADDRESS_CITY = [522, '收货地址保存失败，请选择城市'];
    static public $ERR_ADDRESS_DIST = [523, '收货地址保存失败，请选择地区'];
    static public $ERR_ADDRESS_ADDR = [524, '收货地址保存失败，请填写正确的地址'];
    static public $ERR_ADDRESS_POSCODE = [525, '收货地址保存失败，请填写正确的邮政编码'];
    static public $ERR_ADDRESS_PHONE = [526, '收货地址保存失败，请填写正确的手机号码'];
    static public $ERR_ADDRESS_USERNOTEXT = [527, '收货地址保存失败，用户不存在'];
    static public $ERR_USERREG_PHONEERR = [528, '用户注册失败，请输入正确的电话号码'];
    static public $ERR_ADDRESS_TOOMUSH = [527, '添加收货地址失败，您最多只能有5个收货地址'];

}
